﻿package uiresource.popup
{
    import morn.core.components.*;
    import view.mornExtends.*;

    public class ScSureBuyUI extends View
    {
        public var btn_close:Button;
        public var btn_sure:Button;
        public var btn_cancel:Button;
        public var btn_left:Button;
        public var btn_right:Button;
        public var img_money:Image;
        public var btn_max:Button;
        public var txt_name:Label;
        public var fi:FlashItem;
        public var ti_count:TextInput;
        public var txt_total:Label;
        public var list_price:List;
        public var txt_limit:Label;
        public var redLine:Label;
        protected var uiXML:XML;

        public function ScSureBuyUI()
        {
            this.uiXML = <View>
n	t	t	t  <Image url=""png.common.cs2_tsbg"" x=""0"" y=""0"" width=""315"" height=""256"" sizeGrid=""10,50,10,50""/>
n	t	t	t  <Button skin=""png.common.btn_cs2_close"" x=""286"" y=""5"" var=""btn_close""/>
n	t	t	t  <Button skin=""png.common.btn_cs2_bag"" x=""42"" y=""212"" var=""btn_sure"" label=""确定"" labelColors=""0xb29a6c,0xb29a6c,0xb29a6c"" labelFont=""SimSun"" labelStroke=""1""/>
n	t	t	t  <Button skin=""png.common.btn_cs2_bag"" x=""200"" y=""212"" var=""btn_cancel"" label=""取消"" labelColors=""0xb29a6c,0xb29a6c,0xb29a6c"" labelStroke=""1"" labelFont=""SimSun""/>
n	t	t	t  <Button skin=""png.common.btn_cs2add"" x=""101"" y=""146"" var=""btn_left""/>
n	t	t	t  <Button skin=""png.common.btn_cs2jian"" x=""217"" y=""146"" var=""btn_right""/>
n	t	t	t  <Image url=""png.common.s9_itembg"" x=""131"" y=""142"" width=""78"" sizeGrid=""5,16,5,29""/>
n	t	t	t  <Image url=""png.common.s9_itembg"" x=""91"" y=""173"" width=""191"" smoothing=""false"" sizeGrid=""10,10,10,10"" height=""31""/>
n	t	t	t  <Image url=""png.common.cs2_yuanbao"" x=""97"" y=""181"" var=""img_money""/>
n	t	t	t  <Button label=""最大"" skin=""png.common.btn_zuida"" x=""247"" y=""146"" labelFont=""SimSun"" labelStroke=""1"" labelColors=""0xb29a6c,0xb29a6c,0xb29a6c"" var=""btn_max""/>
n	t	t	t  <Label text=""购买确认"" x=""51"" y=""4"" color=""0xffe4c7"" bold=""true"" font=""Microsoft YaHei"" size=""15"" width=""217"" height=""25"" align=""center""/>
n	t	t	t  <Label text=""购买数量"" x=""34"" y=""149"" stroke=""1"" font=""SimSun"" color=""0xb8764a""/>
n	t	t	t  <Label text=""所需总额"" x=""34"" y=""179"" stroke=""1"" font=""SimSun"" color=""0xb8764a""/>
n	t	t	t  <Label text=""神仙药水"" x=""101"" y=""46"" stroke=""1"" font=""SimSun"" color=""0xb8764a"" width=""182"" height=""18"" var=""txt_name"" bold=""true"" align=""center""/>
n	t	t	t  <FlashItem x=""19"" y=""61"" var=""fi"">
n	t	t	t    <Image url=""png.common.img_2""/>
n	t	t	t    <Image url=""png.common.noramlicon"" x=""5"" y=""5"" name=""icon""/>
n	t	t	t    <Label text=""0"" x=""6"" y=""46"" width=""59"" height=""18"" color=""0xffffff"" stroke=""0x0"" align=""right"" name=""count""/>
n	t	t	t  </FlashItem>
n	t	t	t  <TextInput text=""0"" skin=""png.common.textinput"" x=""138"" y=""149"" width=""64"" height=""18"" color=""0xffffff"" stroke=""0x0"" restrict=""0-9"" align=""center"" var=""ti_count""/>
n	t	t	t  <Label text=""0"" x=""124"" y=""180"" width=""139"" height=""18"" align=""left"" color=""0xffffff"" stroke=""0x0"" var=""txt_total""/>
n	t	t	t  <List x=""97"" y=""70"" repeatX=""1"" repeatY=""2"" var=""list_price"">
n	t	t	t    <Box name=""render"">
n	t	t	t      <Image url=""png.common.s9_itembg"" x=""34"" width=""117"" sizeGrid=""10,10,10,10"" y=""0""/>
n	t	t	t      <Image url=""png.common.cs2_yuanbao"" x=""37"" y=""7"" name=""img_type""/>
n	t	t	t      <Label text=""原价："" y=""7"" stroke=""1"" font=""SimSun"" color=""0x53b436"" isHtml=""true"" height=""18"" name=""txt_money"" width=""150"" x=""0""/>
n	t	t	t    </Box>
n	t	t	t  </List>
n	t	t	t  <Label text=""限购10"" x=""256"" y=""78"" stroke=""1"" font=""SimSun"" color=""0x53b436"" var=""txt_limit""/>
n	t	t	t  <Label stroke=""1"" font=""SimSun"" color=""0xff0000"" underline=""true"" text=""                    "" height=""16"" x=""109"" y=""71"" var=""redLine"" width=""124""/>
n	t	t	t</View>")("<View>
			  <Image url="png.common.cs2_tsbg" x="0" y="0" width="315" height="256" sizeGrid="10,50,10,50"/>
			  <Button skin="png.common.btn_cs2_close" x="286" y="5" var="btn_close"/>
			  <Button skin="png.common.btn_cs2_bag" x="42" y="212" var="btn_sure" label="确定" labelColors="0xb29a6c,0xb29a6c,0xb29a6c" labelFont="SimSun" labelStroke="1"/>
			  <Button skin="png.common.btn_cs2_bag" x="200" y="212" var="btn_cancel" label="取消" labelColors="0xb29a6c,0xb29a6c,0xb29a6c" labelStroke="1" labelFont="SimSun"/>
			  <Button skin="png.common.btn_cs2add" x="101" y="146" var="btn_left"/>
			  <Button skin="png.common.btn_cs2jian" x="217" y="146" var="btn_right"/>
			  <Image url="png.common.s9_itembg" x="131" y="142" width="78" sizeGrid="5,16,5,29"/>
			  <Image url="png.common.s9_itembg" x="91" y="173" width="191" smoothing="false" sizeGrid="10,10,10,10" height="31"/>
			  <Image url="png.common.cs2_yuanbao" x="97" y="181" var="img_money"/>
			  <Button label="最大\" skin="png.common.btn_zuida" x="247" y="146" labelFont="SimSun" labelStroke="1" labelColors="0xb29a6c,0xb29a6c,0xb29a6c" var="btn_max"/>
			  <Label text="购买确认" x="51" y="4" color="0xffe4c7" bold="true" font="Microsoft YaHei" size="15" width="217" height="25" align="center"/>
			  <Label text="购买数量" x="34" y="149" stroke="1" font="SimSun" color="0xb8764a"/>
			  <Label text="所需总额" x="34" y="179" stroke="1" font="SimSun" color="0xb8764a"/>
			  <Label text="神仙药水" x="101" y="46" stroke="1" font="SimSun" color="0xb8764a" width="182" height="18" var="txt_name" bold="true" align="center"/>
			  <FlashItem x="19" y="61" var="fi">
			    <Image url="png.common.img_2"/>
			    <Image url="png.common.noramlicon" x="5" y="5" name="icon"/>
			    <Label text="0" x="6" y="46" width="59" height="18" color="0xffffff" stroke="0x0" align="right" name="count"/>
			  </FlashItem>
			  <TextInput text="0" skin="png.common.textinput" x="138" y="149" width="64" height="18" color="0xffffff" stroke="0x0" restrict="0-9" align="center" var="ti_count"/>
			  <Label text="0" x="124" y="180" width="139" height="18" align="left" color="0xffffff" stroke="0x0" var="txt_total"/>
			  <List x="97" y="70" repeatX="1" repeatY="2" var="list_price">
			    <Box name="render">
			      <Image url="png.common.s9_itembg" x="34" width="117" sizeGrid="10,10,10,10" y="0"/>
			      <Image url="png.common.cs2_yuanbao" x="37" y="7" name="img_type"/>
			      <Label text="原价：\" y="7" stroke="1" font="SimSun" color="0x53b436" isHtml="true" height="18" name="txt_money" width="150" x="0"/>
			    </Box>
			  </List>
			  <Label text="限购10" x="256" y="78" stroke="1" font="SimSun" color="0x53b436" var="txt_limit"/>
			  <Label stroke="1" font="SimSun" color="0xff0000" underline="true" text="                    " height="16" x="109" y="71" var="redLine" width="124"/>
			</View>;
            return;
        }// end function

        override protected function createChildren() : void
        {
            createView(this.uiXML);
            return;
        }// end function

    }
}
